package proxy.main.dynamic;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * 真实处理对象实现类
 */
public class TargetImpl implements InvocationHandler {

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        System.out.println("--method:" + method.getName());
        System.out.println("--动态代理类实现");
        return null;
    }
}
